<#if package!=''>
package ${package};
</#if>

import java.util.*;
import javax.persistence.*;
import io.swagger.annotations.*;
import com.fasterxml.jackson.annotation.*;
import org.hibernate.validator.constraints.*;

@Table(name = "${tableClass.tableName}")
public class ${tableClass.shortClassName} {

<#list tableClass.allFields  as field>
    <#if field.fieldName=='deleted'>
    @JsonIgnore
    </#if>
    <#if field.remarks!=''>
    @ApiModelProperty("${field.remarks}")
    </#if>
    <#if field.stringColumn>
    @Length(max = ${field.length})
    </#if>
    <#if field.identity>
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    </#if>
    @Column(name = "${field.columnName}")
    public ${field.shortTypeName} ${field.fieldName}<#if field.fieldName=='deleted'> = false</#if>;

</#list>

}